<div id="header">
    <div class="header-warp">
        <div id="header-right">
            <if value="IS_LOGIN">
                <div class="dropdown">
                    <div id="dropdownMenu1" data-toggle="dropdown">
                        <img src="{$hd.session.user.icon}" class="user" /> {$hd.session.user.username}
                        <span class="caret"></span>
                    </div>
                    <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
                        <li role="presentation"><a role="menuitem" tabindex="-1" href="__ROOT__/index.php?m=Member&c=Content&a=content&mid=1">文章管理</a></li>
                        <li role="presentation"><a role="menuitem" tabindex="-1" href="__ROOT__/index.php?m=Member&c=Account&a=personal">个人资料</a></li>
                        <li role="presentation"><a role="menuitem" tabindex="-1" href="__ROOT__/index.php?m=Member&c=Login&a=out">退出</a></li>
                    </ul>
                </div>
            <else/>
                <a href="{|U:'Member/Login/login'}" class="bt-primary">登录</a>
                <a href="{|U:'Member/Login/reg'}" class="bt-default">注册</a>
            </if>
        </div>
        <a id="logo" href="__WEB__" title="后盾网开源"></a>
        <ul id="header-nav">
            <li <if value="!isset($_GET['cid'])">class="nav-current"</if>>
                <a href="__WEB__">首页</a>
            </li>
            <channel type="top">
                <li <if value="$_GET['cid'] eq $field.cid || Data::isChild(S(category),$_GET['cid'],$field['cid'])">class="nav-current"</if>>
                {$field.catlink}
                </li>
            </channel>
        </ul>
    </div>
</div>